package com.example.factory.abstractfactory.impl;

import com.example.factory.abstractfactory.DemoFactory;
import com.example.factory.behavior.Food;
import com.example.factory.behavior.Vehicle;
import com.example.factory.behavior.Weapon;
import com.example.factory.pojo.Ak47;
import com.example.factory.pojo.Bread;
import com.example.factory.pojo.Car;

public class NowFactory extends DemoFactory {
    @Override
    public Food createFood() {
        return new Bread();
    }

    @Override
    public Vehicle createVehicle() {
        return new Car();
    }

    @Override
    public Weapon createWeapon() {
        return new Ak47();
    }
}
